package com.mrzhou.core.tool.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

public class Exceptions {

    public static String getStackTraceAsString(Throwable ex) {
        StringWriter stringWriter=new StringWriter();
        ex.printStackTrace(new PrintWriter(stringWriter));
        return stringWriter.toString();
    }

}
